<template>
  <header class="header">
    <!-- 导航 开始-->
    <div class="nav clearfix">
      <div class="navmain">
        <ul class="nav-l">
          <li>行者&nbsp;&nbsp;一直在路上</li>
          <li>
            <a href="login.html">请登录</a>
          </li>
          <li class="nav-l-l">
            <a href="reg.html">免费注册</a>
          </li>
        </ul>
        <ul class="nav-r">
          <li>
            <a href="#">行者首页</a>
          </li>
          <li>
            <a href="#">旅游线路</a>
          </li>
          <li>
            <a href="#">旅游商品</a>
          </li>
          <li>
            <a href="#">我的旅途</a>
          </li>
          <li>
            <a href="#">联系客服</a>
          </li>
          <a href="#">
            <span>
              <i class="ico-app"></i>
              <div><img src="../../public/img/ewm-x.jpg" /></div>
            </span>
          </a>
          <a href="#">
            <span>
              <i class="ico-wechat"></i>
              <div><img src="../../public/img/ewm-x.jpg" /></div>
            </span>
          </a>
        </ul>
      </div>
    </div>
    <!-- 导航 结束 -->
    <!-- 搜索框 -->
    <ul class="top clearfix">
      <li class="logo">
        <img src="../../public/img/logo.png" alt="" />
      </li>
      <li class="search-box">
        <input type="search" name="search" value="" placeholder="山西" />
      </li>
      <li>
        <input type="button" name="button" id="button" class="search-icon" />
      </li>
      <li>
        <ul class="clearfix">
          <li></li>
          <li>
            <p>24小时客户服务电话</p>
            <p>400-888-888</p>
          </li>
        </ul>
      </li>
    </ul>
    <!-- 搜索框结束 -->
    <!-- 导航条 开始 -->
    <div class="menu">
      <ul class="clearfix">
        <li><a href="index.html">首页</a></li>
        <li><a href="#">跟团游</a></li>
        <li><a href="#">自由行</a></li>
        <li><a href="#">门票</a></li>
        <li><a href="#">主题游</a></li>
        <li><a href="#">攻略</a></li>
      </ul>
    </div>
    <!-- 导航条 结束 -->
  </header>
</template>

<style>
/* 顶部通用 */
* {
  padding: 0 auto;
  margin: 0 auto;
}
a {
  text-decoration: none;
}
ul,ol {
  list-style: none;
}
html,body {
  width: 100%;
}
.header .clearfix:after {
  content: "\200B";
  display: block;
  height: 0;
  clear: both;
}
.header .navmain ul {
  list-style-type: none;
  padding-left: 0;
}

.header .navmain li {
  float: left;
  margin-left: 20px;
}
.header li.nav-l-l{
  border-left:1px solid rgb(214, 214, 214);
  padding-left: 10px;
  margin-left: 10px;
}
.header .nav {
  width: 100%;
  height: 30px;
  background-color: rgb(235, 235, 235);
  border-bottom: 1px solid rgb(214, 214, 214);
}
.header .navmain {
  width: 1140px;
  height: 16px;
  margin: 0 auto;
  line-height: 16px;
  padding: 7px 30px;
  font-size: 12px;
  color: gray;
}

.header .nav-l a:link,
.header .nav-l a:visited {
  font-size: 12px;
  text-decoration: none;
  color: black;
}

.header .nav-l a:hover,
.header .nav-l a:active {
  text-decoration: none;
  color: orange;
}

.header .nav-r {
  font-size: 12px;
  line-height: 16px;
  margin-left: 560px;
}

.header .nav-r a:link,
.header .nav-r a:visited {
  text-decoration: none;
  color: black;
}

.header .nav-r a:hover,
.header .nav-r a:active {
  text-decoration: none;
  color: orange;
}

.header .nav-r li {
  border-right: 1px solid rgb(214, 214, 214);
  padding-right:20px;
}

.header .ico-app {
  width: 10px;
  height: 16px;
  background: url(../../public/img/c.png) -100px -67px no-repeat;
  display: inline-block;
}

.header .ico-wechat {
  width: 18px;
  height: 18px;
  background: url(../../public/img/c.png) -97px -99px no-repeat;
  display: inline-block;
}

.header .nav-r span {
  padding: 0 20px;
  position: relative;
}
.header .nav-r>a>span>div>img{
  display: block;
  border: 1px solid #ff9d12;
}
.header .nav-r>a>span>div{
  position: absolute;
  left: 0;
  display: none;
}
.header .nav-r>a>span:hover>div{
  display: block;
}
/* 搜索 */
.header .top {
  width: 1200px;
  height: 100px;
}

.header .logo {
  width: 220px;
  height: 100px;
}

.header .top img {
  display: block;
}

.header .search-box{
  width: 350px;
  height: 35px;
  padding: 30px 0 0 150px;
}

.header .search-box+li {
  padding: 30px 0 0 0;
}

input[type="search"] {
  width: 350px;
  height: 35px;
  border-radius
  : 3px 0 0 3px;
  outline: none;
  border: 3px solid #ffa200;
}

.header .search-icon {
  width: 45px;
  height: 35px;
  border: 0;
  outline: none;
  cursor: pointer;
  background: #ffa200 url(../../public/img/c.png) 6px 83px;
}

.header .search-icon:focus::-webkit-input-placeholder {
  color: transparent;
}

.header .adv-search {
  display: inline-block;
}

.header .top>li {
  float: left;
  text-align: center;
}

.header .top>li>a {
  line-height: 96px;
  display: block;
  margin-left: 20px;
}

.header .top>li>ul> :first-child {
  width: 28px;
  height: 28px;
  margin-left: 60px;
  margin-top: 32px;
  float: left;
  background: url(../../public/img/c.png) -8px 40px;
}

.header .top>li>ul> :last-child {
  width: 160px;
  height: 56px;
  float: left;
  line-height: 22px;
  padding: 22px 0;
}

.header .top>li>ul>li> :first-child {
  font-size: 12px;
}

.header .top>li>ul>li> :last-child {
  font-size: 18px;
  color: #ffa200;
}

/* 导航 */
.header .menu {
  width: 100%;
  height: 40px;
  line-height: 40px;
  text-align: center;
  background-color: #ffa200;
}

.header .menu>ul {
  width: 1200px;
  height: 40px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
}

.header .menu>ul>li {
  margin: 0;
  width: 100px;
}

.header .menu>ul>li>a:link,
.header .menu>ul>li>a:visited {
  display: inline-block;
  font-size: 18px;
  width: 100px;
  height: 40px;
  color: white;
}

.header .menu>ul>li>a:hover {
  font-weight: 700;
  color: white;
  background-color: #b66a00;
}
</style>